package com.wholeintech.entity;


import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

@Table(name = "SceneDevice")
public class SceneDevice extends EntityBase {
    @Column(name = "sceneId")
    private String sceneId;

    @Column(name = "devId")
    private String devId;

    @Column(name = "sw")
    private int sw;

    @Column(name = "brightness")
    private int brightness;

    @Column(name = "color")
    private int color;

    @Column(name = "runstate")
    private int runstate;

    @Column(name = "mode")
    private int mode;

    @Column(name = "temperature")
    private int temperature;

    @Column(name = "wind")
    private int wind;

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public int getSw() {
        return sw;
    }

    public void setSw(int sw) {
        this.sw = sw;
    }

    public int getBrightness() {
        return brightness;
    }

    public void setBrightness(int brightness) {
        this.brightness = brightness;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public int getRunstate() {
        return runstate;
    }

    public void setRunstate(int runstate) {
        this.runstate = runstate;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getTemperature() {
        return temperature;
    }

    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }

    public int getWind() {
        return wind;
    }

    public void setWind(int wind) {
        this.wind = wind;
    }

    @Override
    public String toString() {
        return String.format("sceneId=%s devid=%s,\n    sw=%d, brightness=%d, color=%08x,\n    mode=%d, wind=%d, temp=%d, runstate=%d",
                sceneId, devId, sw, brightness, color, mode, wind, temperature, runstate);
    }
}
